import { Model, Table, Column, DataType, CreatedAt, UpdatedAt } from "Sequelize-typescript";

/*
 * @Author: fishroom
 * @Date: 2022-10-14 13:50:38
 * @LastEditTime: 2022-10-14 13:55:54
 * @FilePath: \koa\app\model\sys_role.ts
 */
class sys_role extends Model {
  @Column({
    type: DataType.INTEGER,
    primaryKey: true,
    autoIncrement: true,
    unique: true,
    allowNull: false,
  })
  role_id!: number;
  @Column
  role_name!: string;
  @Column
  remark!: string;
  @Column
  create_user_id!: number;
  @CreatedAt
  create_time!: Date;
  @UpdatedAt
  update_time!: Date;
}
export default sys_role;
